<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

/*Route::get('/', function () {
    return view('welcome');
    //view调用试图里的welcome.blade.php
});*/
Route::get('/', function () {
    return view('index');
    //view调用试图里的welcome.blade.php
});

//首页客户端的列表
Route::get('/','newController@show');
//客户端详情页面列表
Route::get('/view/{id}','newController@view');
Route::get('/list/{id}','newController@list');
/*Route::post('/login','Auth/LoginController@login');*/
/*Route::get('/login/indexsystem', function () {
    return view('indexsystem');
    //view调用试图里的welcome.blade.php
});*/
//首页管理员的列表
Route::get('indexsystemlist','newController@listshow');
Route::get('/indexsystem','newController@news_info');
//各个功能的应用函数调用
Route::get('delete/indexsystem/{id}','newController@delete');
Route::post('addnew/indexsystem','newController@addnew');
Route::post('modify/indexsystem','newController@modify');
Route::get('deletelist/indexsystemlist/{id}','newController@deletelist');
Route::post('addlist/indexsystemlist','newController@addnewlist');
Route::post('modifylist/indexsystemlist','newController@modifylist');

Route::get('/home', 'newController@news_info');
Auth::routes();